package by.gravity.common.utils;

import android.app.ProgressDialog;
import android.content.Context;

public class ProgressUtil {

	public static void showLoading(ProgressDialog mProgressDialog, Context context) {

		if (!mProgressDialog.isShowing()) {
			mProgressDialog.show();
		}
	}

	public static void hideLoading(ProgressDialog mProgressDialog, Context context) {
		if (mProgressDialog != null && mProgressDialog.isShowing()) {
			mProgressDialog.dismiss();
		}
	}

}
